<?php


class Zend_Sql_Adapter_Standard_Expression_Identifier
{
	static public function factory($type) {
		switch($type) {
			case 'database':
			case 'schema':
				$identifier = new Zend_Sql_Adapter_Standard_Expression_Identifier_Schema();
				break;
			case 'table':
				$identifier = new Zend_Sql_Adapter_Standard_Expression_Identifier_Table();
				break;
			case 'column':
				$identifier = new Zend_Sql_Adapter_Standard_Expression_Identifier_Column();
				break;
			default:
				throw new Zend_Sql_Exception('Invalide type : ' . $type);
				break;
		}
		return $identifier;
	}
}
